package com.fa.dv.mapper;

import com.fa.dv.domain.Machinery;
import com.fa.dv.domain.Workshop;

import java.util.ArrayList;
import java.util.List;

public interface MachineryMapper {
    List<Machinery> list(Machinery machinery);

    List<Workshop> getWorkshop();

    void insert(Machinery machinery);

    String getWorkshopName(Long workshopId);

    Machinery getMachineryTypeNameById(Long machineryId);

    void update(Machinery machinery);

    void delete(Long machineryId);

    void insertBatch(ArrayList<Machinery> cacheList);
}
